
 const  router = [
    {
        title: '控制台',
        icon: 'laptop',
        key: '/index',
        role: ["user", "information", "product"]
    },
    {
        title: '用户管理',
        icon: 'laptop',
        key: '/index/user',
        role: ["information", "user"],
        child: [
            {key: '/index/user/userlist', title: '用户列表', icon: '', role: ["user"]},
            {key: '/index/user/adduser',title: '添加用户',icon: '',role: ["user"]}
        ]
    },
    {
        title: '部门管理',
        icon: 'bars',
        key: '/index/department',
        role: ["user"],
        child: [
            {key: '/index/department/list', title: '部门列表', icon: '', role: ["user"] },
            {key: '/index/department/add', title: '添加部门', icon: '', role: ["user"] },
        ]
    },
    {
        title: '职位管理',
        icon: 'edit',
        key: '/index/job',
        role: ["user"],
        child: [
            {key: '/index/job/list', title: '职位列表', icon: ''},
            {key: '/index/job/add', title: '添加职位', icon: ''}
        ]
    },
    {
        title: '职员管理',
        icon: 'edit',
        key: '/index/staff',
        child: [
            {key: '/index/staff/list', title: '职员列表', icon: ''},
            {key: '/index/staff/add', title: '添加职员', icon: ''}
        ]
    },
    {
        title: '请假',
        icon: 'info-circle-o',
        key: '/home/about'
    },
    {
        title: '加班',
        icon: 'info-circle-o',
        key: '/home/abouta'
    }
]

 export default router;
